import React from 'react'
import reactDom from 'react-dom'

const fn = (a,b) => a+b
const app = (title)=>{
  return (
    <div>
      hello react
      { title }
      { 1+2+3/3 }
      {
        fn(1,45)
      }
      { '你好' }
      { 1> 2?'真的大':'假的'  }
    </div>
  )
}

reactDom.render(
  app('react真好玩')
  ,
  document.querySelector("#root")
)
